import request from '@/utils/request'

// 获取站内信
export function getLetter(data) {
  return request({
    url: '/UserApi/letter',
    method: 'post',
    data
  })
}
// 标记已读
export function readLetter(data) {
  return request({
    url: '/UserApi/batchReadLetter',
    method: 'post',
    data
  })
}
// 删除
export function delLetter(data) {
  return request({
    url: '/userApi/batchDelLetter',
    method: 'post',
    data
  })
}

// 详情
export function detailLetter(data) {
  return request({
    url: '/UserApi/getLetterDetail',
    method: 'post',
    data
  })
}
